import Vue from 'vue'
import Vuex from 'vuex'

import axios from 'axios'
Vue.use(Vuex)
export default new Vuex.Store({
    state: {
        user: localStorage.getItem("user") ? JSON.parse(localStorage.getItem("user")) : {},
        // user: {},
        dialogVisible: false
    },
    getters: {},
    mutations: {
        SET_USER(state, user) {
            state.user = user
        },
        show(state, b) {
            state.dialogVisible = b
        }
    },
    actions: {
        getMeiTu() {
            const url = 'https://api.apiopen.top/getImages'
        }
    },

})